package com.slmxz.tms.biz.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单货物实体对象
 *
 * @author sunyao
 *@Date 2024-10-15 21:32
 */
@Getter
@Setter
@TableName("biz_order_cargo")
public class OrderCargo{

    @TableId(value = "id")
    private Long id;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 货物代码
     */
    private String cargoCode;
    /**
     * 货物名称
     */
    private String cargoName;
    /**
     * 货物编号
     */
    private String cargoNo;
    /**
     * 货物规格
     */
    private String cargoSpecial;
    /**
     * 货物件数
     */
    private Integer pcs;
    /**
     * 货物重量
     */
    private BigDecimal weight;
    /**
     * 货物体积
     */
    private BigDecimal volume;

    /**
     * 修改人ID
     */
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
